import request from '@/request'

//上传文件
export const uploadFile = (formData) => {
    return request.post(
        "/upload/uploadFile", formData,
        {
            headers:{'Content-Type':'multipart/form-data'},
            contentType:2
        }
    )
}

// 获取文件流
export const getFiles = (params) => {
    return request.post(
        "/upload/getFiles", params,
        {responseType: "blob"}
     )
}
